package com.crm.guidance;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.crm.dao.CommonDAO;
import com.crm.guidance.po.Guidance;

public class GuidanceDAO extends CommonDAO implements IGuidanceDAO {

	public boolean addGuidance(Guidance guidance) {
		this.getSqlMapClientTemplate().insert("Guidance.addGuidance", guidance);
		return true;
	}
	public boolean updateGuidance(Guidance guidance) {
		this.getSqlMapClientTemplate().update("Guidance.updateGuidance", guidance);
		return true;
	}
	public List list(Guidance guidance,HttpServletRequest request) {
			  
		return null;
	}
	public Guidance getGuidance(String sId) {
		Guidance guidance = (Guidance)this.getSqlMapClientTemplate().queryForObject("Guidance.getGuidance", sId);
		return guidance;
	}
}
